package com.example.soa_exp2.Domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("bor_request")
@Schema(name = "借用器材记录实体类")
@Repository
public class Borrow {
    @TableId
    @Schema(name = "借用记录id")
    private int bor_rec_id;
    @Schema(name = "器材id")
    private String goods_id;
    @Schema(name = "器材名称")

    private String goods_name;
    @Schema(name = "学生id")

    private String stu_id;
    @Schema(name = "学生姓名")

    private String stu_name;
    @Schema(name = "学生联系方式")

    private String stu_tel;
    @Schema(name = "借用数量")

    private Long bor_num;
    @Schema(name = "借用时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date bor_time;
    @Schema(name = "当前状态")

    private boolean status;
    @Schema(name = "操作员账号")

    private String operator_account;


}
